//
//  PhonePickView.h
//  dongfengTest
//
//  Created by wxt on 2021/3/24.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
@protocol pickerDelegate <NSObject>
- (void)selectIndex:(NSInteger)index;
@end

@interface PhonePickView : UIView<UIPickerViewDelegate,UIPickerViewDataSource>
@property(nonatomic,strong)UIView * bgView;
@property(nonatomic,strong)UIPickerView *pickerView;
@property (nonatomic, strong) NSMutableArray       *arr;
@property (nonatomic, assign) NSInteger            indexSelect;
@property (nonatomic, weak) id <pickerDelegate>     delegate;
/*  初始化方法
    frame ：选择框的frame
    arrData ： 要展示的数据
*/
- (instancetype)initWithFrame:(CGRect)frame arr:(NSArray *)arrData;
@end

NS_ASSUME_NONNULL_END
